﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WebAPITest.Models.Database;

namespace WebAPITest.service
{
    public interface IUserService
    {

        /// <summary>
        /// 根据用户名获取用户对象
        /// </summary>
        /// <param name="userName"></param>
        /// <returns></returns>
        User GetUserByUserName(string userName);

        User AddUser(string username, string password, byte salt, string nickname, int userlevel, string email, string createtime = null);

        Good GetGoodByGoodId(int goodid);

        List<Good> selectUserHistory(String userid);

        List<Good> AddUserHistory(List<Good> record, Good good,string userid);
    }
}
